package balmysundaycandy.webtest.more.low.level.check.urlfetch;

import balmysundaycandy.more.low.level.urlfetch.UrlfetchOperations;
import balmysundaycandy.test.AppengineEnvironmentTestCase;

import com.google.appengine.api.urlfetch.URLFetchServicePb.URLFetchRequest;
import com.google.appengine.api.urlfetch.URLFetchServicePb.URLFetchResponse;
import com.google.appengine.api.urlfetch.URLFetchServicePb.URLFetchRequest.RequestMethod;

public class UrlfetchExecutableCheck extends AppengineEnvironmentTestCase {
	public void testFetch(){
		URLFetchRequest request = URLFetchRequest.newBuilder().setUrl(environment.getApplicationUrlRoot()).setMethod(RequestMethod.POST).build();
		
		URLFetchResponse response = UrlfetchOperations.FETCH.call(request);
		System.out.println(response);
	}
}
